package Demo5.Demo1;

/**
 * @Author:LiRegin
 * @Date: 2019/12/3 17:34:02
 */
 interface Inter {
    void show();
}
class Outer{
    public static Inter method() {
        return new Inter() {
            @Override
            public void show() {
                System.out.println("HelloWord");
            }
        };
    }
}
class OuterDemo{
    public static void main(String[] args) {
        Outer.method().show();
    }
}